Skip to content

Add support for logr - #37

Merged
k8s-ci-robot merged 11 commits into
kubernetes:masterfrom
dims:add-support-for-logr
Jan 25, 2019
Merged

k8s-ci-robot merged 11 commits into
kubernetes:masterfrom
dims:add-support-for-logr

Conversation

@dims

@dims dims commented Jan 25, 2019

Copy link
Copy Markdown
Member

What this PR does / why we need it:

We have libraries like k8s.io/utils that need logging, we should have a way to use the logr in these scenarios. For example see kubernetes/utils#70

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Release note:

Now supports github.com/go-logr/logr based interfaces backed by klog

thockin and others added 10 commits August 21, 2016 21:07
Change-Id: I92207e2ca9bbd88a8780912a3aef297685c917f6
Change-Id: I3117562d1eecee175ac06443a79b717296f6149e
Change-Id: I813d542005959293327057ff3ddf81da4e454581
Change-Id: Ia25673d014bcfc1f23aee7cb4856e1e24cba02fb
Change-Id: I4e2c5a7ff5b2526bafac0cd17836b3377a91339d
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 25, 2019
@dims

dims commented Jan 25, 2019

Copy link
Copy Markdown
Member Author

/assign @thockin

@dims

dims commented Jan 25, 2019

Copy link
Copy Markdown
Member Author

/assign @vincepri @thockin @DirectXMan12

@dims

dims commented Jan 25, 2019

Copy link
Copy Markdown
Member Author

/hold

(for discussion)

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 25, 2019
@neolit123

neolit123 commented Jan 25, 2019 •

Copy link
Copy Markdown
Member

cc @munnerz
FYI

@k8s-ci-robot k8s-ci-robot assigned munnerz and unassigned munnerz Jan 25, 2019
Comment thread klogr/klogr.go Outdated
"k8s.io/klog"
)

// New returns a logr.Logger which is implemented by glog.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/glog/klog

Comment thread klogr/klogr.go Outdated
return new
}

// WithName returns a new logr.Logger with the specified name appended. glogr

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/glog/klog

Change-Id: Ie02835fa7e1fb01ccfe64deb30a414cabae70067
@dims
dims force-pushed the add-support-for-logr branch from 6808784 to 2ecd970 Compare January 25, 2019 22:10

@thockin thockin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 25, 2019
@k8s-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dims, thockin

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@thockin

thockin commented Jan 25, 2019

Copy link
Copy Markdown
Member

Do we need the hold?

@dims

dims commented Jan 25, 2019

Copy link
Copy Markdown
Member Author

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 25, 2019
@k8s-ci-robot
k8s-ci-robot merged commit 5a3af3e into kubernetes:master Jan 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants